﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportData.aspx.cs" Inherits="CoolCode.Web.UI.Views.Check.ImportData" %>

<%@ Register Src="~/Controls/CheckProductList.ascx" TagName="CheckProductList" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>数据导入</title>
</head>
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="tsmAjax" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Content/js/Common.js" />
        </Scripts>
    </ajaxToolkit:ToolkitScriptManager>
    <cc:Loading ID="Loading1" runat="server" />
    <!--Title -->
    <div class="HeaderTitle">
        <asp:Label ID="SCRHDR" runat="server" Text="数据导入"></asp:Label>
    </div>
    <asp:Panel ID="pnlMaster" runat="server" CssClass="HeaderSearch">
        <table cellspacing="5" width="100%">
            <tr>
                <td align="right" style="width: 120px;">
                    <asp:Label ID="lblFilePath" runat="server" Text="选择一个Excel文件"></asp:Label>
                </td>
                <td align="left" style="width: 300px;">
                    <asp:FileUpload ID="txtFileUpload" runat="server" Width="300px" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <!--Grid-->
    <asp:UpdatePanel ID="udpHeader" runat="server" UpdateMode="Conditional">
        <Triggers>
            <asp:PostBackTrigger ControlID="lnkUpload" />
        </Triggers>
        <ContentTemplate>
            <div class="HeaderToolbar">
                <asp:LinkButton ID="lnkUpload" runat="server" CausesValidation="False" Text="上传" />
                &nbsp;
            </div>
            <uc:CheckProductList ID="Products" runat="server">
            </uc:CheckProductList>
            <div style="clear: both;">
            <asp:HiddenField ID="hidGuid" runat="server"  />
            </div>
            <div class="warningMessage">
            <asp:Literal ID="ltrMessage" runat="server" ></asp:Literal>
            </div>
            <div class="HeaderToolbar" >
                <asp:LinkButton ID="lnkSave" runat="server" CausesValidation="False" Text="提交"     />
                &nbsp;
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
